package com.hydl.power.mapper;

import com.hydl.power.pojo.ChargerModule;
import com.hydl.power.pojo.City;
import com.hydl.power.pojo.Transformer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TransformerMapper {
   List<Transformer> selectByCondition(@Param("pageNumKey") Integer pageNum, @Param("pageSizeKey") Integer pageSize, String cityId, String projectId, String roomId);
   List<Transformer> selectByToken(@Param("pageNumKey") Integer pageNum, @Param("pageSizeKey") Integer pageSize, String cityId, String projectId, String roomId,String token);

   int addTransformer(Transformer transformer);

   int deleteById(Integer id);

   int updateTrans(String transformerName,Integer id);

   Transformer selectById(Integer id);

   /*模糊查询*/
   List<Transformer> queryTransformerLike(@Param("pageNumKey") Integer pageNum, @Param("pageSizeKey") Integer pageSize,String text,String projectId);

    String getTransformerMapperNumberByRoomId(String roomId);

    Transformer queryTransformerByDeviceId(String sn);

    String queryTransformerCapacity(String projectId);

    List<Transformer> getTransformerDevice(String projectId, String powerRoomId);

    List<Transformer> queryTransformerProjectId(String projectId);

    int queryDeviceTransformerCount(String projectId);

    List<Transformer> queryDeviceTransformer(String projectId);

    void updateTransformer(Integer id, String transformerName, String transformerCapacity, String manufactor, String modelNumber, String productionTime, String cityId, String cityName, String projectId, String projectName, String powerRoomId, String powerRoomName, String deviceId, String deviceName, String installTime);
}
